//
//  BTSchoolCourseList.m
//  BaxTer
//
//  Created by wsj2015 on 16/10/17.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "BTSchoolCourseList.h"
#import "CWQ_courseIntroductionCell.h"
#import "BTChooseCourseVC.h"
#import "CWQ_historySearchVC.h"
@interface BTSchoolCourseList ()


@end

@implementation BTSchoolCourseList

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self configUI_me];
    [self requestMarketCourseList:YES];
}

- (void)configUI_me{
  
   
    
    UIBarButtonItem *right1 =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"筛选_icon.png"] style:0 target:self action:@selector(repick)];
    UIBarButtonItem *right2 =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"搜索_icon.png"] style:0 target:self action:@selector(toSearch)];
    
    self.navigationItem.rightBarButtonItems =@[right2,right1];
    self.tableView.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight - 64);
    
}

- (void)repick{
    weakSelf_define;
     [BTChooseCourseVC showWithVC:self.navigationController WithDoneBlock:^(BTCourseQueryTypeModel *typeModel) {
        weakSelf.courseCondtionModel = typeModel;
//        [weakSelf getTopicList:YES];
         [weakSelf requestMarketCourseList:YES];
    }];
  
}
- (void)toSearch{
    
    CWQ_historySearchVC *vc =[CWQ_historySearchVC  new];
    vc.searchType = CWQ_historySearchVCType_Course_FlagGuanli;
    vc.flagId = self.flagId;
    [self.navigationController pushViewController:vc animated:YES];

}


@end
